package com.yiban.demo.ShuoShuo.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShuoShuoComment {
    @TableId(type = IdType.AUTO)
    private Integer commentId;
    @NotBlank(message = "评论的说说id不能为空")
    private Integer ShuoShuoId;
    @NotBlank(message = "评论内容不能为空")
    private String commentContent;
    private Long scTimestamp;
    private Integer userId;
}
